<%@ page language="java"  pageEncoding="UTF-8"%>
<script type="text/javascript">
  $(function(){
	  var currentPage='${page.page}';
	  var totalPage='${page.totalPage}';
   $("#up").click(function(){
	  if(currentPage==1){
		  alert("已经是第一页");
		  return;
	  }else{
		  window.location.href=pageUrl+"&page=${page.page-1}";
	  }
   });
   $("#down").click(function(){
		  if(currentPage==totalPage){
			  alert("已经是末页");
			  return;
		  }else{
			  window.location.href=pageUrl+"&page=${page.page+1}";
		  }
	      	  
	   });
   $("#jump").blur(function(){
	   var page=$("#currentpage").val();
		 if(isNaN(page) || page<=0){ alert('请输入有效的页数！'); $("#currentpage").select(); return;}
		 if(page>totalPage) { alert('第'+page+'页不存在！');return;}
		  window.location.href=pageUrl+"&page="+page;
   });
  });
</script>
共找到 ${page.totalRow} 条记录，每页${page.pageSize }条记录 &nbsp;&nbsp;<a id="up" href="javascript:void(0)">&lt;上页</a>&nbsp;&nbsp;<a id="down" href="javascript:void(0)">下页&gt;</a> &nbsp;&nbsp;跳转至&nbsp;&nbsp;<input id="currentpage"   onkeyup="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')" type="text"  class="tiaozhuan"/>&nbsp;&nbsp;页&nbsp;&nbsp;<button name="" class="sure"  id="jump" />确 定</button>